from django.db import models

# Create your models here.


class Loguser(models.Model):
    account = models.CharField(max_length=32, verbose_name='账号')
    password = models.CharField(max_length=20, verbose_name='密码')


class Person(models.Model):
    name = models.CharField(max_length=32, verbose_name='姓名')
    email = models.EmailField(verbose_name='邮箱')
    gender = models.CharField(max_length=1, choices=(('1', '男'), ('2', '女')), verbose_name='性别')
    head_img = models.ImageField(upload_to='headimage', blank=True, null=True, verbose_name='头像')
    attachment = models.FileField(upload_to='filedir', blank=True, null=True, verbose_name='附件')
